package components;

import java.util.Collection;

import uml.Visitable;
import uml.Visitor;

public class ClassDiagram implements Visitable {
	//- PUBLIC & INTERNAL VARIABLES ---------------------------------------------------------------------------

	//- PRIVATE & PROTECTED VARIABLES -----------------------------------------------------------------------
	private final Collection<Package> packages;
	
	//- CONSTRUCTOR ----------------------------------------------------------------------------------------------
	public ClassDiagram(Collection<Package> packages) {
		this.packages = packages;
	}
	
	//- PUBLIC & INTERNAL METHODS -----------------------------------------------------------------------------
	@Override
	public void accept(Visitor visitor) {
		visitor.visit(this);
	}
	
	//- PRIVATE & PROTECTED METHODS -------------------------------------------------------------------------

	//- GETTERS & SETTERS ----------------------------------------------------------------------------------------
	public Collection<Package> getPackages() {
		return packages;
	}
}
